package photostock.model.tests;

import static org.junit.Assert.assertTrue;

import java.util.Vector;

import org.junit.Test;

import photostock.model.User;
import photostock.model.UserItem;


public class ItemFactoryTest {

	@Test
	public void getAlbums() {
		User nico = new User("nico");
		nico.login("atreides");
		nico.initChildrenItems();
		Vector<UserItem> albums = nico.getChildrenItems();
		assertTrue(albums.size() == 1);
	}
	
}
